package cn.wolfcode.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ClassGrade extends BaseDomain{

    public static final boolean YES_BASICS = true;  //是基础班
    public static final boolean NO_BASICS = false;  //非基础班

    //班级名称
    private String name;

    //计划开班时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd ",timezone="GMT+8")
    private Date classBeginTime;
    //计划毕业时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd ",timezone="GMT+8")
    private Date classEndTime;
    //班级学生数量
    private Integer stuNumber;
    //所在校区
    private SystemDictionaryItem campus;
    //所属学院
    private SystemDictionaryItem college;
    //开班状态,默认新建时时没有开班的
    private boolean classStatus=false;
    //班级所用教室
    private Classroom classroom;
    //班主任
    private Employee employee;
    //是否是基础班标志位 默认为是基础班
    private boolean isBasics = YES_BASICS;

}